package com.atguigu.gulimall.ware.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.ware.feign.fallback.OrderFeignServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 *  订单远程服务
 * @author xiaoping
 */
@FeignClient(value = "gulimall-order",fallback = OrderFeignServiceFallBack.class)
public interface OrderFeignService {

    /**
     * 获取订单信息
     * @param orderSn
     * @return
     */
    @GetMapping("/order/order/status/{orderSn}")
    R getOrderStatus(@PathVariable("orderSn") String orderSn);

}
